import yaml


def load_config():
    """从 YAML 文件中加载配置"""
    with open('../config/config.yml', 'r') as file:
        config = yaml.safe_load(file)
    return config
